package com.jinwei.servicefeign.controller;

import com.jinwei.servicefeign.api.HiApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 金伟 on 2019/6/19 0019.
 * @date 2019/8/30 23:48
 * @desc
 */
@Controller
public class Feign1Controller {


    @Autowired
    private HiApi hiApi;


    @RequestMapping(value = "/hi")
    @ResponseBody
    public String sayHHII() {

        System.out.println("Feign客户端");
        return hiApi.sayYouHi();

    }
}
